<?php

class myLib {

    public function getFileExtension($type){//input: $_FILES["file"]["type"]
        $extension = "";
        switch($type){
            case "application/pdf":
                $extension = "pdf";
                break;
            case "image/jpeg":
                $extension = "jpg";
                break;
            case "image/pjpeg":
                $extension = "jpg";
                break;
            default:
                $extension = "none";
        }
        return $extension;
    }

    function getTitle($element, $lang = 'es', $params = array('')){
        switch($lang){
            case 'es':
                $lang = array(
                    'Administrator - IFA PERÚ'
                );
                break;
        }
        return $lang[$element];
    }

}